WheelEvent

public interface WheelEvent implements MouseEvent

A wheel event that provides access to the wheel event data.

This event occurs when a user rotates a wheel on a pointing device (such as a mouse).

Types

Link copied to clipboard
public enum DeltaMode
Represents the type of the delta units.

Functions

Link copied to clipboard
public abstract MouseEvent.Button button()
Returns a button pressed during events caused by pressing or releasing one or multiple buttons.
Link copied to clipboard
public abstract int clickCount()
Returns the count of consecutive clicks that happened in a short amount of time for mouse events, such as "click", "mouseDown, "mouseUp".
Link copied to clipboard
public abstract Point clientLocation()
Returns the location of the mouse cursor in the local (DOM content) coordinate system at the time the event occurred.
Link copied to clipboard
public abstract Optional<EventTarget> currentTarget()
Returns an Optional that contains the event target that represents the element to which the event handler has been attached, otherwise an empty Optional.
Link copied to clipboard
public abstract WheelEvent.DeltaMode deltaMode()
Returns the delta units type.
Link copied to clipboard
public abstract double deltaX()
Returns the amount of units to scroll horizontally.
Link copied to clipboard
public abstract double deltaY()
Returns the amount of units to scroll vertically.
Link copied to clipboard
public abstract boolean isBubbles()
Returns true if the event bubbles up through the DOM, otherwise false.
Link copied to clipboard
public abstract boolean isCancelable()
Returns true when the event can be canceled, and therefore prevented as if the event never happened.
Link copied to clipboard
public abstract boolean isTrusted()
Returns true if the event is trusted, and therefore was generated by a user action.
Link copied to clipboard
public abstract KeyModifiers keyModifiers()
Returns the key modifiers that are applied to the event.
Link copied to clipboard
public abstract Point offsetLocation()
Returns the location of the mouse cursor in the component's coordinate system at the time the event occurred.
Link copied to clipboard
public abstract Point pageLocation()
Returns the location of the mouse cursor in the document coordinate system at the time the event occurred.
Link copied to clipboard
public abstract EventPhase phase()
Returns the event phase.
Link copied to clipboard
public abstract void preventDefault()
Informs the browser that if the event is not explicitly handled, its default action should not be performed.
Link copied to clipboard
public abstract Point screenLocation()
Returns the location of the mouse cursor in the screen's coordinate system at the time the event occurred.
Link copied to clipboard
public abstract void stopPropagation()
Informs the browser that the event should not propagate in the capturing and bubbling phases.
Link copied to clipboard
public abstract Optional<EventTarget> target()
Returns an Optional that contains the element on which the event occurred if it exists, otherwise an empty Optional.
Link copied to clipboard
public abstract EventType type()
Returns the event type.